#coding=utf-8
#切换城市定位
class changeLocation():
    def __init__(self,driver):
        self.driver = driver
    def relocationTab(self):
        return self.driver.find_element_by_id('com.guokr.mentor:id/text_view_locate')
    def cityTab(self):
        return self.driver.find_elements_by_id("com.guokr.mentor:id/cp_gird_item_name")[0]
    def curcityTab(self):
        return self.driver.find_element_by_id("com.guokr.mentor:id/text_view_city_name")